#include "../server.hpp"


int main()
{
    Socket cli_sock;
    cli_sock.CreateClient(8787, "127.0.0.1");
    while(1)
    {
        std::string str = "hello poller and channel !";
        cli_sock.Send((void*)str.c_str(), str.size());
        char buf[1024] = {0};
        cli_sock.Recv(buf, 1023);
        LOG(DEBUG, "%s", buf);
        sleep(1);
    }
    


    return 0;
}